• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login
  1. Home
  2. Tags
  3. pwm control
Log in to post
  • All categories
  • undefined

    Solved PWM Issues

    CNC
    • pwm control workbee • 28 Dec 2021, 21:22 • JvP79 30 Dec 2021, 18:18
    10
    0
    Votes
    10
    Posts
    683
    Views

    undefined 30 Dec 2021, 18:18

    @jvp79 Good news!

  • undefined

    Driving USB LED from duet

    Duet Hardware and wiring
    • duet 2 wifi leds pwm control • 17 Nov 2020, 19:25 • Reefwarrior 17 Nov 2020, 20:48
    2
    0
    Votes
    2
    Posts
    356
    Views

    undefined 17 Nov 2020, 20:48

    Yes, probably. In many ways setting up basic LEDs is the same as setting up a fan. Since duet switches pwm on the negative side you can source your voltage elsewhere and then use a fan or heater pin to control it.

    https://duet3d.dozuki.com/Wiki/Connecting_and_configuring_fans

    In fact if you configure it as an actual fan it can show up as a slider on the web interface for dimming.

  • undefined

    Consolidating supply and GND for hotend

    Duet Hardware and wiring
    • pwm control 12v gnd • 8 Nov 2020, 23:18 • Gerrard 9 Nov 2020, 11:46
    5
    0
    Votes
    5
    Posts
    548
    Views

    undefined 9 Nov 2020, 11:46

    @Gerrard said in Consolidating supply and GND for hotend:

    Can I run 2 laser filament sensors from the 3.3V and GND of one pin (say E0), then use the input (E0/1 STOP) pins from E0 and E1.

    Yes the filament monitors can both be powered from the same 3.3V and ground connection

    Then, can I run a 12V and GND from the Power In terminal to the hot end to power the fans and LEDs, and run the Fan's PWM signal pin to the FAN0- and FAN1- pins?

    Assuming you are using 12Vs to supply the whole system then you can use a single source of 12V, and switch the -'Ve sides (i.e use the FAN0- and FAN 1- for the two fan 've connections, possibly use fan 2- to control the LEDs.

    caveats

    You need to ensure you don't exceed the limits of the fan mosfets (1.5A max) There is a potential failure mode where the VIN voltage shorts onto 3.3V. this is more likely if you bundle all the wires up into the same bundle. You mention you are using a ribbon cable. This can be a good solution but be careful to manage the strain relief and flexing to it does not break and short. Also check the max current rating of each of the conductors in the ribbon cable (probably 1A max or less). If you end up putting 12V and the return GND over multiple conductors then if one breaks, the other ones will end up carrying more than they are rated for, and get hot.
  • undefined

    Solved Thermostatic fan and PWM and Duex

    Duet Hardware and wiring
    • duex5 fans setup pwm control • 31 Oct 2020, 09:00 • justus2342 31 Oct 2020, 10:13
    2
    0
    Votes
    2
    Posts
    267
    Views

    undefined 31 Oct 2020, 10:13

    It seems I have not read the docs as good as I thought. The L Parameter of the M106-Command fixes my problem. This is the minimum Power for this fan.

    M950 F1 C"duex.fan8+^duex.pb6" M106 P1 C"HeatSinkFan" S0 H1 T45 L255

    I found this out when investigating the fan status by running M106 P1. It only turned with 50% power.

  • undefined

    Duetwifi solenoid connection

    CNC
    • duet wifi pwm control • 2 Feb 2020, 10:56 • edmundas323 3 Feb 2020, 18:56
    18
    0
    Votes
    18
    Posts
    1.2k
    Views

    undefined 3 Feb 2020, 18:56

    @dc42 wow, thats a good thing to know. As I understand when I open the valve, I can just after few second use same comand with half of power just to keep everything open. Amazing 🙂

  • undefined

    Circuit-design Peltier Element

    Duet Hardware and wiring
    • peltier circuit-design help pwm control • 20 Nov 2019, 10:12 • Dani111 22 Nov 2019, 12:35
    7
    0
    Votes
    7
    Posts
    776
    Views

    undefined 22 Nov 2019, 12:35

    Your schematic should work for low PWM frequencies, your 'screaming', whatever that might be, is probably caused by a wiring error. Are you sure you connected the GND's of the 12V supply and the uC board together?

    Other than that the circuit is suboptimal; it takes R3 a long time to charge the gate of M1 which increases dissipation. Replacing R1/R2/R3/Q1 with something like a TC4427 would be a better solution.

    Regarding PWMming TEC's: you can do that as long as you keep the PWM frequency above 1kHz or so. If you PWM with a low frequency there is too much stress on the thermocouple joints due to them thermally expanding and contracting many times a second.

  • undefined

    Configure 4 Pins for PWM Output (Analog Voltage) On Maestro

    Duet Hardware and wiring
    • pwm control analog output • 2 Oct 2019, 21:36 • 3ddevil 3 Oct 2019, 08:10
    3
    0
    Votes
    3
    Posts
    306
    Views

    undefined 3 Oct 2019, 08:10

    @3ddevil said in Configure 4 Pins for PWM Output (Analog Voltage) On Maestro:

    The heater needs to be disabled and not referenced by a tool "using M307 H# A-1 C-1 D-1 to make the pin available." Is there any such requirement for the fans/servo?

    Yes, see https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins.

    Finally, if buffered correctly (F=10KHz) and routed into a proper RC buffer can we expect to an analog output from 0-3.3V for Servo and 0-Vin for Heater and 0-Fan Voltage Set? Can you confirm this is possible?

    If using a heater or fan output, you would need to add a pullup resistor to +3.3V if you want a 0 to 3.3V output.

    are there any more outputs / alternative pins natively supported by the Maestro or is that all we can do with the chip as currently routed?

    The available pins on the Maestro are listed at https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins. Only the heater, fan, and Z probe control/servo pins are PWM-capable.

  • undefined

    4x berd air on duet wifi with duex5

    General Discussion
    • pwm control berd air multi extrusion mosfet servo • 13 Apr 2019, 20:05 • greywarden 14 Apr 2019, 15:33
    6
    0
    Votes
    6
    Posts
    843
    Views

    gtj0undefined 14 Apr 2019, 15:33

    Interesting pump. Looks like the 6 litre-per-minute brushless version with pwm and tachometer. At $9.50 each, I may have to grab a few to play with.

  • undefined

    BLTouch on fan or heater pins on Duet Wifi

    General Discussion
    • bltouch pwm control • 16 Sept 2018, 10:43 • Googliola 13 Dec 2018, 16:27
    11
    0
    Votes
    11
    Posts
    2.7k
    Views

    undefined 13 Dec 2018, 16:27

    @fallenhorseman Glad I could help.

    Note to all guys: Yeah 4k7Ohm Pullup to 5V is resolving that issues

    Funnily, I dont need a pullup between 5V and the PWM of the FAN, but I need one between GND and Z-Probe (as you can barely see in my picture 😉 . I use the 'old' version of BLTouch which is not 3.3V 'tolerant'. Am I missing something or is that a typo on your side?

  • pro3dundefined

    Will 12v fan on 24Vin blow up the board?

    Duet Hardware and wiring
    • fans setup mosfet pwm control • 25 Jun 2018, 08:24 • pro3d 25 Jun 2018, 10:33
    4
    0
    Votes
    4
    Posts
    854
    Views

    undefined 25 Jun 2018, 10:33

    @pro3d said in Will 12v fan on 24Vin blow up the board?:

    @dc42
    Thanks for the response! Not many radial 4020 blowers on 24v

    But can connecting wrong fan to one port destroy all of the FAN outs?

    Shorting one fan output can damage a trace on older Duets, or blow the 1A fuse on revision 1.03 Duets. But in that case, the fans won't run at all.

    Followup question
    I also connected the bl touch before making it 3.3v ready --- Are more components now dead?

    Unlikely. We can't guarantee it, but the endstop and Z probe inputs will generally tolerate a lot of over-voltage without damage.

  • undefined

    How to use Duex5 PWM port as a fan?

    Firmware installation
    • pwm control • 7 Jun 2018, 19:19 • dintid 11 Jun 2018, 09:05
    4
    0
    Votes
    4
    Posts
    777
    Views

    undefined 11 Jun 2018, 09:05

    It's not currently possible to use the PWM headers as fan outputs controlled by M106 unless you recompile the firmware.

    Are you already using all 8 or 9 fan outputs?

  • undefined

    Maximum Frequency of PWM Fans

    Duet Hardware and wiring
    • fans pwm control • 7 May 2018, 15:20 • SnowCrash 8 May 2018, 07:44
    5
    1
    Votes
    5
    Posts
    6.7k
    Views

    undefined 8 May 2018, 07:44

    @snowcrash said in Maximum Frequency of PWM Fans:

    @dc42 said in Maximum Frequency of PWM Fans:

    I agree, ordinary 2-wire PWM fans are not designed to work with PWM.

    I assume you meant 2-wire non- PWM fans?

    I just meant 2-wire fans.

    Varying the voltage for the fan on the basis of a PWM signal doesn't require a slow signal and, in my view, is the optimal solution.

    However, I do appreciate it may be problematic in terms of cost and/or PCB real-estate. If that's the case, I think dropping the PWM approach altogether and going with direct voltage control would still be much better than the current implementation.

    Direct voltage control also requires a lot of PCB real estate. You need large inductors and capacitors to smooth the PWM to something approaching DC, then probably more inductors and capacitors to keep the EMI under control.

    But, like you say, almost nobody uses PWM fans - at least not for the small effector fans where speed control is crucial - as they are very hard (if not impossible) to find. Incredibly hard to believe no company in the market realized yet that such fans would be an instant hit with consumers.

    Noctua has informed me that they will be bringing out a range of smaller PWM-controllable fans, in both 12V and 24V versions. So I think they will become more common. In the next generation Duets we will probably provide at least one 4-pin fan connector.

Unless otherwise noted, all forum content is licensed under CC-BY-SA